package com.woniuxy.factory.mapper;

import com.woniuxy.factory.entity.Inventory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 邹佳骏
 * @date 2020-08-22 11:40
 * @name 库存mapper
 */
public interface InventoryMapper {

    /*查找所有的库存信息*/
    List<Inventory> selectAllInventorys(@Param("home") int home,@Param("limit") int limit, @Param("inventory") Inventory inventory);

    /*更新仓库指定物料的库存数量*/
    void updateInventoryAmount(@Param("realsurplusamount") Integer realsurplusamount
            ,@Param("matId") String matId);

    /*查询所有条数*/
    int selectAllCount();
}
